Reactive2DList.CopyTo(Span>) method¶
Defined in
Type: Reactive2DListReactiveList.Reactive.Collections
Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Overloads¶
-
public void CopyTo(Span<ReactiveList<T>> destination) -
public void CopyTo(ReactiveList<T>[] array, int arrayIndex) -
public void CopyTo(Array array, int index)
1. Overload¶
public void CopyTo(Span<ReactiveList<T>> destination)
View source (opens in a new tab)
Inherited documentation
These docs were inherited from ReactiveList<T>. The member doesn't override them on this type.
Summary: Copies the items to the specified span.
Parameters
| Name | Type | Description |
|---|---|---|
destination | Span | The destination span. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException (opens in a new tab) | Thrown when destination is too small. |
2. Overload¶
public void CopyTo(ReactiveList<T>[] array, int arrayIndex)
View source (opens in a new tab)
Inherited documentation
These docs were inherited from ICollection<ReactiveList<T>>. The member doesn't override them on this type.
Summary: Copies the elements of the ICollection (opens in a new tab) to an Array (opens in a new tab), starting at a particular Array (opens in a new tab) index.
Parameters
| Name | Type | Description |
|---|---|---|
array | ReactiveList<T>[] | The one-dimensional Array (opens in a new tab) that is the destination of the elements copied from ICollection (opens in a new tab). The Array (opens in a new tab) must have zero-based indexing. |
arrayIndex | int (opens in a new tab) | The zero-based index in array at which copying begins. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException (opens in a new tab) | array is null. |
| System.ArgumentOutOfRangeException (opens in a new tab) | arrayIndex is less than 0. |
| System.ArgumentException (opens in a new tab) | The number of elements in the source ICollection (opens in a new tab) is greater than the available space from arrayIndex to the end of the destination array. |
3. Overload¶
public void CopyTo(Array array, int index)
View source (opens in a new tab)
Inherited documentation
These docs were inherited from ICollection. The member doesn't override them on this type.
Summary: Copies the elements of the ICollection (opens in a new tab) to an Array (opens in a new tab), starting at a particular Array (opens in a new tab) index.
Parameters
| Name | Type | Description |
|---|---|---|
array | Array (opens in a new tab) | The one-dimensional Array (opens in a new tab) that is the destination of the elements copied from ICollection (opens in a new tab). The Array (opens in a new tab) must have zero-based indexing. |
index | int (opens in a new tab) | The zero-based index in array at which copying begins. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException (opens in a new tab) | array is null. |
| System.ArgumentOutOfRangeException (opens in a new tab) | index is less than zero. |
| System.ArgumentException (opens in a new tab) | array is multidimensional. -or- The number of elements in the source ICollection (opens in a new tab) is greater than the available space from index to the end of the destination array. -or- The type of the source ICollection (opens in a new tab) cannot be cast automatically to the type of the destination array. |